package cn.wolfcode.service;

import cn.wolfcode.domain.Question;
import cn.wolfcode.domain.QuestionItem;
import cn.wolfcode.domain.SaveQuestion;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IQuestionService {
    void save(Question question);
    void delete(Long id);
    void update(Question question);
    Question get(Long id);
    List<Question> listAll();
    // 分页查询的方法
    PageInfo<Question> query(QueryObject qo);

    List<Question> queryByQuestionList(Long examId, Integer type);

    Workbook exportXls(Integer[] typeArr);

    void importXls(MultipartFile file);

    List<QuestionItem> queryItem(Long qid);

    void insertQuestion(SaveQuestion saveQuestion);

    void updateQuestion(SaveQuestion saveQuestion);
}
